<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace common\components;

use Yii;

/**
 * Description of UrlRule
 *
 * @author Sylar
 */
class UrlRule extends \yii\web\UrlRule{
    
    public function createUrl($manager, $route, $params) {
        $wid = Yii::$app->request->get('wid');
        if (!isset($params['wid']) && $wid) {
            $params['wid'] = $wid;
        }
        return parent::createUrl($manager, $route, $params);
    }
}
